/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.cpqd.ssar.gerenciador;

import br.com.cpqd.ssar.utilitarias.Geometria;

/**
 *
 * @author igorj
 */
public class RenderObserver implements RenderListener {

    private Geometria geo;
    private float []coordenadasFonte = new float[3];

    public Geometria getGeometria() {
        return geo;
    }

    public void geometriaInserida(RenderEvent e) {
        
        Render r = (Render) e.getSource();
        geo = r.getGeometria();
        //System.out.println("Geometria inserida: " + geo.getNome() );
    }

    public void fonteInserida(RenderEvent e) {
        Render r = (Render) e.getSource();
        coordenadasFonte = r.getCoordenadasFonte();
        //System.out.println("Fonte inserida: ");
    }   

    public void avisarBotao(StatusEvent e) {
        Status r = (Status) e.getSource();
        System.out.println("avisar botao render observer");
       
    }

    public void canvasFocus(RenderEvent e) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void objSelecionado(RenderEvent e) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
